-- GENERATED SPELL FOR [Chief Engineer Lorthander] --


function spell0_18697(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(38204,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18697', 1000, 1)
end

function spell1_18697(pUnit, Event) --@Arcane Unlocking,Self--
pUnit:FullCastSpellOnTarget(38898,pUnit)
pUnit:RegisterEvent('Sorts_18697', 1000, 1)
end

function spell2_18697(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(36843,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18697', 12000, 1)
end

function Sorts_18697(pUnit, Event)
local choix_sorts_18697 = math.random(0, 2)
if choix_sorts_18697 == 0 then
pUnit:RegisterEvent('spell0_18697', 1, 1)
end
if choix_sorts_18697 == 1 then
pUnit:RegisterEvent('spell1_18697', 1, 1)
end
if choix_sorts_18697 == 2 then
pUnit:RegisterEvent('spell2_18697', 1, 1)
end
end

function mob18697_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18697', math.random(1500, 3000), 1)
end

function mob18697_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18697_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18697_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18697, 1, 'mob18697_Action')
RegisterUnitEvent(18697, 2, 'mob18697_Leave')
RegisterUnitEvent(18697, 3, 'mob18697_Kill')
RegisterUnitEvent(18697, 4, 'mob18697_Die')
